import { createApp } from 'vue'
import './style.scss'
import App from './App.vue'
import router, { addRoutes } from './router'
import store from './store'

import element from './utils/element'
// 暗黑模式主题样式文件
import 'element-plus/theme-chalk/dark/css-vars.css'
const app = createApp(App)

app.config.globalProperties.baseUrl = 'http://localhost:3000'
app.use(router)
app.use(store)

app.use(element)

window.onload = () => {
    addRoutes()
}
app.mount('#app')